package com.by.web;

import com.by.SpringContextUtils;
import com.by.aop.NeedTest;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:/db.properties")
public class LogServiceImpl implements LogService {

    @Value("${user.name}")
    private String userName;

    @Override
    @NeedTest(value = true, desc = "登录say")
    public String say(String name) {

        SpringContextUtils.getBean("fastJsonConfigure");

        return "测试返回值" + userName;
    }
}
